<!--#include virtual="/Common/Config.asp" -->
<!--#include virtual="/Common/conn.asp" -->
<!--#include virtual="/2010admin/Check_IsLogin.asp" -->
<!--#include virtual="/Common/Function.asp" -->
<!--#include file="Info_Inc.asp" -->

<%

If Request.ServerVariables ("Request_Method")="POST" Then

	'禁止从网站外部提交数据
	Call Deny_OutSiteSubit()

	Call Info_Edit()	
	

Else

	Info_ID = requery("Info_ID")
	

	Call Get_Info(Info_ID)

	If Info_Pic="" Then
		Info_Pic_S = ""
	Else
		Info_Pic_S = "<img class=img01 border=1 height=200 width=315 src="""&Info_Pic&""" >"
	End If

End If

%>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<link href="/2010admin/css/default.css" type="text/css" rel="stylesheet">
<title><%=web_title%></title>
<script language="javascript" src="/2010admin/js/validator.js"></script>
<script language="javascript" src="/js/jquery.js"></script>
<script language="javascript" src="js/info_query.js"></script>
<script type="text/javascript" src="/2010admin/ckeditor/ckeditor.js"></script>
<script type="text/javascript" src="/2010admin/ckfinder/ckfinder.js"></script>

</head>
<body >
<table border="0" width="100%" cellSpacing="0" cellPadding="0">
  <tr>
    <td width="100%" height="5"></td>
  </tr>
  <tr>
    <td width="100%" align="center">
      <table border="0" width="98%" cellSpacing="0" cellPadding="0">
        <tr>
          <td width="*" align="center" valign="top">
            <table border="0" width="100%" cellSpacing="0" cellPadding="0" class="lrbtline">
              <tr>
                <td width="100%" height="25" class="tbtop">管理导航</td>
              </tr>
              <tr>
                <td width="100%" align="center">
                  <table border="0" width="98%" cellSpacing="0" cellPadding="0">
                    <tr>
                      <td width="100%" height="5"></td>
                    </tr>
                  </table>
                  <table border="0" width="98%" cellSpacing="0" cellPadding="0">
                    <tr>
                      <td width="100%" height="20">&nbsp;<img src="/2010admin/images/sico.gif" border="0">&nbsp;<span id="userlist"><a href="Info_Query.asp">信息列表</a></span>&nbsp;<img src="/2010admin/images/sico.gif" border="0">&nbsp;<span id="useradd"><a href="Info_Add.asp">增加新的信息</a></td>
                    </tr>
                    <tr>
                      <td width="100%" height="5"></td>
                    </tr>
                  </table>
                </td>
              </tr>
            </table>
            <table border="0" width="100%" cellSpacing="0" cellPadding="0">
              <tr>
                <td width="100%" height="5"></td>
              </tr>
            </table>
            <table border="0" width="100%" cellSpacing="0" cellPadding="0" class="lrbtline">
              <tr>
                <td width="100%" height="25" class="tbtop">增加新的信息</td>
              </tr>
              <tr>
                <td width="100%" align="center">
                  <table border="0" width="98%" cellSpacing="0" cellPadding="0">
                    <tr>
                      <td width="100%" height="5"></td>
                    </tr>
                  </table>
                  <table border="0" width="98%" cellSpacing="0" cellPadding="0" class="tablesh">
                  <form name="form" method="post" action=""  onSubmit="return Validator.Validate(this, 2)">

                    <tr>
                      <td height="25">信息大类</td>
                      <td><% AjaxSelected_BySql "BT_ID","SELECT BT_ID,BT_Name FROM News_Big_Type ORDER BY BT_Order ASC","",BT_ID,"BigType_Change()" %></td>
                    </tr>

                    <tr>
                      <td height="25">信息小类</td>
                      <td><%'Call Info_Type_List(IT_ID)%>
						<select name="IT_ID" id="IT_ID" style="width:120" >
						</select>

					  </td>
                    </tr>
                    <tr>
                      <td width="80" height="25">信息标题</td>
                      <td width="*">
					  <input name="Info_Title"  value="<%=Info_Title%>" type="text" id="Info_Title" size="40" dtype="Limit" min="2" max="100" dmsg="信息标题必须在2-100个字符间">
					  </td>
                    </tr>
                    <tr>
                      <td width="80" height="25">信息副标题</td>
                      <td width="*"><input name="Info_Sub_Title"  value="<%=Info_Sub_Title%>" type="text" id="Info_Sub_Title" size="60" dtype="Limit" min="0" max="100" dmsg="资讯副标题必须小于100个字符间"></td>
                    </tr>
					<tr>
                      <td width="80" height="25">转向地址</td>
                      <td width="*"><input name="Info_URL" type="text" id="Info_URL" value="<%=Info_URL%>" size="60" dtype="Limit" min="0" max="100" dmsg="转向地址必须少于100个字符间"></td>
                    </tr>

                    <tr>
                      <td width="80" height="25">信息图片</td>
                      <td width="*">
					  <input type="text" name="Info_Pic"  value="<%=Info_Pic%>" size="60" ><iframe id=d_file frameborder=0 src="/2010admin/common/file_upload.asp?change_field=Info_Pic" width="300" height="40" scrolling=no></iframe>
                     </td>
                    </tr>

                    <tr>
                      <td width="80" height="25">信息摘要</td>
                      <td width="*">
							<textarea name="Info_ZY" cols="65" rows="6"  dtype="Limit" min="0" max="100" dmsg="资讯摘要小于200个字符" ><%=Info_ZY%></textarea>
					  </td>
                    </tr>

                    <tr>
                      <td width="80" height="25">信息内容</td>
                      <td width="*">
							<textarea name="Info_Content" class="ckeditor"><%=Info_Content%></textarea>
					  </td>
                    </tr>
					<tr>
                      <td width="80" height="25">信息来源</td>
                      <td width="*"><input name="Info_From" type="text" id="Info_From" value="<%=Info_From%>" size="60" dtype="Limit" min="0" max="50" dmsg="信息来源必须少于50个字符间"></td>
                    </tr>

                    <tr>
                      <td height="25">信息开关</td>
                      <td><% MyRadioList "Info_Audit","1,0","开放,关闭",Info_Audit %></td>
                    </tr>
                    <tr>
                      <td height="25">&nbsp;</td>
                      <td>
					  <input type="submit" name="submit" value="提交" class="button">&nbsp;<input type="reset" name="reset" value="取消" class="button">
					  <INPUT TYPE="hidden" NAME="Info_Pic_Old" value="<%=Info_Pic%>">
					  <INPUT NAME="Info_ID" TYPE="hidden" id="Info_ID" value="<%=Info_ID%>">
					  
					  </td>
                    </tr>

                  </form>
                  </table>
                  <table border="0" width="98%" cellSpacing="0" cellPadding="0">
                    <tr>
                      <td width="100%" height="5"></td>
                    </tr>
                  </table>
                </td>
              </tr>
            </table>
          </td>
        </tr>
      </table>
    </td>
  </tr>
  <tr>
    <td width="100%" height="5"></td>
  </tr>
</table>
</body>
</html>
<script language="javascript">
<!--
var IT_ID=<%=IT_ID%>;
BigType_Change();
//-->
</script>

<%
Call conn_close()
%>

